#ifndef POINTPAIRLISTPLUS_H
#define POINTPAIRLISTPLUS_H

#include <qwt_plot.h>
#include <qwt_plot_curve.h>
#include <QtXml>
#include <QSharedPointer>
#include "preciseeditordata.h"

class PointPairListPlus: public QwtPlotCurve {
private:
    QSharedPointer<PreciseEditorData> myPED;
public:
    inline const QSharedPointer<PreciseEditorData>& PEDreference() const {
        return myPED;
    }
    inline void setPED(const QSharedPointer<PreciseEditorData>& ref) {
        myPED = ref;
    }
    PointPairListPlus(const QString& title): QwtPlotCurve(title), myPED(new PreciseEditorData()) {}
    bool serialize(QDomElement& elem, QDomDocument& doc) const;
    bool deserialize(const QDomElement& elem, unsigned short i);
};

#endif // POINTPAIRLISTPLUS_H
